<template>
  <div>
    <my-button @click="isFocus = !isFocus">单击</my-button>
    <life v-if="isFocus"></life>
  </div>
</template>

<script>
import MyButton from '../3.21/myButton.vue';
import life from "./life.vue";
export default {
  components: {
    life,
    MyButton,
  },
  data() {
    return {
      isFocus: false,
    };
  },
};
</script>

<style>
</style>